package com.gagakuai.engine.impl.context;

import com.gagakuai.engine.impl.persistence.entity.ExecutionEntity;
import com.gagakuai.engine.impl.runtime.InterpretableExecution;

/*
 * @program: common-starters
 * @description: 执行上下文
 * @author: houhong
 * @create: 2023-01-02 19:45
 */
public class ExecutionContext {

    protected ExecutionEntity execution;

    public ExecutionContext(InterpretableExecution execution) {
        this.execution = (ExecutionEntity) execution;
    }

    public ExecutionEntity getExecution() {
        return execution;
    }

    public ExecutionEntity getProcessInstance() {
        return execution.getProcessInstance();
    }
}